package com.beimin.evedata.model.inv;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 *
 * @author Candle
 */
@Entity
@org.hibernate.annotations.Entity(mutable = false)
@Table(name = "invMetaTypes")
public class InvMetaType implements Serializable {
  @Id
  @ManyToOne()
  @JoinColumn(name="typeID")
  InvType type;
  
  @ManyToOne
  @JoinColumn(name="parentTypeID")
  InvType parentType;
          
  @ManyToOne
  @JoinColumn(name="metaGroupID")
  InvMetaGroup invMetaGroup;

  public InvMetaGroup getInvMetaGroup() {
    return invMetaGroup;
  }

  public void setInvMetaGroup(InvMetaGroup invMetaGroup) {
    this.invMetaGroup = invMetaGroup;
  }

  public InvType getType() {
    return type;
  }

  public void setType(InvType invType) {
    this.type = invType;
  }

  public InvType getParentType() {
    return parentType;
  }

  public void setParentType(InvType parentType) {
    this.parentType = parentType;
  }
}
